package com.ruoyi.api.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 电话记录对象 biz_phone_record
 * 
 * @author 魏建波
 * @date 2022-01-22
 */
public class BizPhoneRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 标识 */
    private Long id;

    /** 机器码 */
    @Excel(name = "机器码")
    private String phoneSn;

    /** 记录时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "记录时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date recordTime;

    /** 存储路径 */
    @Excel(name = "存储路径")
    private String resourcePath;

    /** 类型（1-截屏图片 2-音频） */
    @Excel(name = "类型", readConverterExp = "1=-截屏图片,2=-音频")
    private Long resourceTypeId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setPhoneSn(String phoneSn) 
    {
        this.phoneSn = phoneSn;
    }

    public String getPhoneSn() 
    {
        return phoneSn;
    }
    public void setRecordTime(Date recordTime) 
    {
        this.recordTime = recordTime;
    }

    public Date getRecordTime() 
    {
        return recordTime;
    }
    public void setResourcePath(String resourcePath) 
    {
        this.resourcePath = resourcePath;
    }

    public String getResourcePath() 
    {
        return resourcePath;
    }
    public void setResourceTypeId(Long resourceTypeId) 
    {
        this.resourceTypeId = resourceTypeId;
    }

    public Long getResourceTypeId() 
    {
        return resourceTypeId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("phoneSn", getPhoneSn())
            .append("recordTime", getRecordTime())
            .append("createTime", getCreateTime())
            .append("resourcePath", getResourcePath())
            .append("resourceTypeId", getResourceTypeId())
            .append("remark", getRemark())
            .toString();
    }
}
